<?php /* Smarty version Smarty-3.1.8, created on 2014-06-28 13:57:12
         compiled from "C:\wamp\www\maquinado\views\index\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:904053ac6ed46dbf57-14688929%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '663b2783f178aa7aaa6faa7784f56f6bcef929e6' => 
    array (
      0 => 'C:\\wamp\\www\\maquinado\\views\\index\\index.tpl',
      1 => 1403981818,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '904053ac6ed46dbf57-14688929',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_53ac6ed46fcba1_87964336',
  'variables' => 
  array (
    'count' => 0,
    'Paroen' => 0,
    'cons' => 0,
    'maq' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_53ac6ed46fcba1_87964336')) {function content_53ac6ed46fcba1_87964336($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\wamp\\www\\libs\\Smarty\\libs\\plugins\\modifier.date_format.php';
?><table align="center" width="100%">
<tr>
    <th rowspan="2">Pieza</th>
    <th rowspan="2">Exis</th>
<?php $_smarty_tpl->tpl_vars['count'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['count']->step = 1;$_smarty_tpl->tpl_vars['count']->total = (int)ceil(($_smarty_tpl->tpl_vars['count']->step > 0 ? 5+1 - (0) : 0-(5)+1)/abs($_smarty_tpl->tpl_vars['count']->step));
if ($_smarty_tpl->tpl_vars['count']->total > 0){
for ($_smarty_tpl->tpl_vars['count']->value = 0, $_smarty_tpl->tpl_vars['count']->iteration = 1;$_smarty_tpl->tpl_vars['count']->iteration <= $_smarty_tpl->tpl_vars['count']->total;$_smarty_tpl->tpl_vars['count']->value += $_smarty_tpl->tpl_vars['count']->step, $_smarty_tpl->tpl_vars['count']->iteration++){
$_smarty_tpl->tpl_vars['count']->first = $_smarty_tpl->tpl_vars['count']->iteration == 1;$_smarty_tpl->tpl_vars['count']->last = $_smarty_tpl->tpl_vars['count']->iteration == $_smarty_tpl->tpl_vars['count']->total;?>
    <th colspan="4"><?php echo smarty_modifier_date_format(time(),"%W")+$_smarty_tpl->tpl_vars['count']->value;?>
</th>
<?php }} ?>
</tr>
<tr>
<?php $_smarty_tpl->tpl_vars['count'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['count']->step = 1;$_smarty_tpl->tpl_vars['count']->total = (int)ceil(($_smarty_tpl->tpl_vars['count']->step > 0 ? 5+1 - (0) : 0-(5)+1)/abs($_smarty_tpl->tpl_vars['count']->step));
if ($_smarty_tpl->tpl_vars['count']->total > 0){
for ($_smarty_tpl->tpl_vars['count']->value = 0, $_smarty_tpl->tpl_vars['count']->iteration = 1;$_smarty_tpl->tpl_vars['count']->iteration <= $_smarty_tpl->tpl_vars['count']->total;$_smarty_tpl->tpl_vars['count']->value += $_smarty_tpl->tpl_vars['count']->step, $_smarty_tpl->tpl_vars['count']->iteration++){
$_smarty_tpl->tpl_vars['count']->first = $_smarty_tpl->tpl_vars['count']->iteration == 1;$_smarty_tpl->tpl_vars['count']->last = $_smarty_tpl->tpl_vars['count']->iteration == $_smarty_tpl->tpl_vars['count']->total;?>
    <th>ppr</th>
    <th>Maquina</th>
    <th>pr</th>
    <th>h</th>
<?php }} ?>
</tr>

<?php  $_smarty_tpl->tpl_vars['cons'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['cons']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['Paroen']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['cons']->key => $_smarty_tpl->tpl_vars['cons']->value){
$_smarty_tpl->tpl_vars['cons']->_loop = true;
?>
<form>
<tr>
    <td> <?php echo $_smarty_tpl->tpl_vars['cons']->value['parte'];?>
</td>
    <td> <?php echo $_smarty_tpl->tpl_vars['cons']->value['exist'];?>
</td>
    <?php ob_start();?><?php echo smarty_modifier_date_format(time(),"%W");?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo smarty_modifier_date_format(time(),"%W");?>
<?php $_tmp2=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['count'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['count']->step = 1;$_smarty_tpl->tpl_vars['count']->total = (int)ceil(($_smarty_tpl->tpl_vars['count']->step > 0 ? $_tmp2+6+1 - ($_tmp1+1) : $_tmp1+1-($_tmp2+6)+1)/abs($_smarty_tpl->tpl_vars['count']->step));
if ($_smarty_tpl->tpl_vars['count']->total > 0){
for ($_smarty_tpl->tpl_vars['count']->value = $_tmp1+1, $_smarty_tpl->tpl_vars['count']->iteration = 1;$_smarty_tpl->tpl_vars['count']->iteration <= $_smarty_tpl->tpl_vars['count']->total;$_smarty_tpl->tpl_vars['count']->value += $_smarty_tpl->tpl_vars['count']->step, $_smarty_tpl->tpl_vars['count']->iteration++){
$_smarty_tpl->tpl_vars['count']->first = $_smarty_tpl->tpl_vars['count']->iteration == 1;$_smarty_tpl->tpl_vars['count']->last = $_smarty_tpl->tpl_vars['count']->iteration == $_smarty_tpl->tpl_vars['count']->total;?>
        <?php if (isset($_smarty_tpl->tpl_vars['cons']->value[$_smarty_tpl->tpl_vars['count']->value])){?>
            <td title="<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['cons']->value[$_smarty_tpl->tpl_vars['count']->value]['totsaldo'];?>
</td>
            
        <?php }else{ ?>
            <td title="<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" >---</td>
            
        <?php }?>
        <td><select>
        <?php  $_smarty_tpl->tpl_vars['maq'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['maq']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['cons']->value['maqs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['maq']->key => $_smarty_tpl->tpl_vars['maq']->value){
$_smarty_tpl->tpl_vars['maq']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['maq']->value['Maquina'];?>
"><?php echo $_smarty_tpl->tpl_vars['maq']->value['Maquina'];?>
</option>
        <?php } ?>
        </select></td>
        <td title="<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
"><input onchange="this.form.submit()" id="$cons.parte_<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
_pr" type="number" min="0" step="1" max="9999"/></td>
        <td title="<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
">&nbsp;</td>
    <?php }} ?>
</tr>
</form>
<?php } ?>
</table><?php }} ?>